using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Ent.Web.Helper;

public partial class Controls_Common_Agreement : System.Web.UI.UserControl
{
    public string _contentName;
    public string ContentName
    {
        get { return _contentName; }
        set { _contentName = value; }
    }
    public bool UserAgreed
    {
        get { return (rblAgree.SelectedValue == "1"); }
        set { if (value) rblAgree.SelectedIndex = 1; }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        lblHeader.Text = ContentName;
        lblContent.Text = ContentHelper.GetContent(ContentName);

        ListItem li = new ListItem(ResourceHelper.Get("LBL_IDoNotAgree"), "0");
        li.Selected = true;
        rblAgree.Items.Add(li);

        li = new ListItem(ResourceHelper.Get("LBL_IAgree"), "1");
        rblAgree.Items.Add(li);
    }

}
